package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.DataAreaachiRecordDao;
import io.renren.entity.DataAreaachiRecordEntity;
import io.renren.service.DataAreaachiRecordService;



@Service("dataAreaachiRecordService")
public class DataAreaachiRecordServiceImpl implements DataAreaachiRecordService {
	@Autowired
	private DataAreaachiRecordDao dataAreaachiRecordDao;
	
	@Override
	public DataAreaachiRecordEntity queryObject(String id){
		return dataAreaachiRecordDao.queryObject(id);
	}
	
	@Override
	public List<DataAreaachiRecordEntity> queryList(Map<String, Object> map){
		return dataAreaachiRecordDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return dataAreaachiRecordDao.queryTotal(map);
	}
	
	@Override
	public void save(DataAreaachiRecordEntity dataAreaachiRecord){
		dataAreaachiRecordDao.save(dataAreaachiRecord);
	}
	
	@Override
	public void update(DataAreaachiRecordEntity dataAreaachiRecord){
		dataAreaachiRecordDao.update(dataAreaachiRecord);
	}
	
	@Override
	public void delete(String id){
		dataAreaachiRecordDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		dataAreaachiRecordDao.deleteBatch(ids);
	}

	@Override
	public void deleteByMonth(String month) {
		// TODO Auto-generated method stub
		dataAreaachiRecordDao.deleteByMonth(month);
	}
	
}
